package com.fm.dimenstool

import java.io.File

object DimenGenerator {
    /**
     * 设计稿尺寸(将自己设计师的设计稿的宽度填入)
     */
    private const val DESIGN_WIDTH = 375

    @JvmStatic
    fun main(args: Array<String>) {
        val hasDimensFile = DimensParse.parseDimesXml()

        val values = DimenTypes.entries.toTypedArray()
        for (value in values) {
            val file = File("")
            MakeUtils.makeAll(
                DESIGN_WIDTH,
                value,
                "${file.absolutePath}/dimens_files/src/main/res/",
                hasDimensFile
            )
        }
    }
}